Add migration helper for Tabnine CLI to opencode - #1
Open
Pavel-tabnine wants to merge 2 commits into
Open
Conversation
Adds migration_helper/ subtree with: - skills/migrate-from-tabnine-cli/ — interactive wizard skill that discovers Tabnine CLI (or Gemini CLI) configuration on disk, asks the user per category what to migrate, and translates fields into opencode's schema. Includes reference docs for source paths and field-by-field translation rules. - commands/migrate.md — /migrate slash command as an entry point to the wizard. - install.sh — bash installer that copies the skill and command into either ~/.config/opencode/ (default) or ./.opencode/ (--project). Shows a diff and prompts skip/overwrite/rename on collisions. Supports --overwrite to bypass prompts. - README.md — install (script or manual copy) and usage docs. - LICENSE — MIT, subtree-scoped. Root README gets one new section linking to migration_helper/README.md.
Pavel-tabnine
force-pushed
the
feat/migration-helper
branch
2 times, most recently
from
August 2, 2026 11:44
f8d7d34 to
f59fccc
Compare
Review-driven fixes to migrate-from-tabnine-cli, verified against
opencode 1.18.9 and tabnine-cli sources and via end-to-end wizard runs:
- MCP: env -> environment (opencode's key; env was silently ignored),
keep cwd and per-server timeout (both supported), rewrite $VAR/${VAR}
values to {env:VAR} unconditionally, back up opencode.json before merge
- Commands: single folder-mirroring namespacing policy, inline all three
placeholder rewrites ({{args}}, !{...}, @{...}), no-placeholder rule
- Skills: defined gemini-ism body scan, defensive name normalization,
duplicate-name semantics corrected (log-only warning, coin-flip winner)
- Discovery: A2A array-frontmatter bundles skipped up front, built-ins
shown as "(built-in, skipped)", stale enablement entries ignored,
extension-enablement respected
- source-map: settings precedence corrected (system tier wins last)
- Wizard UX: inline subagent/primary explanation, defined per-category
scope override, no migrate-all shortcut
New: migrate-tabnine-context skill + /migrate-context command that
copies TABNINE.md/GEMINI.md context files into AGENTS.md, re-runnable
per repository, merge-or-skip on existing targets.
Installer: installs both skills, survives non-interactive runs
(default-skip when /dev/tty cannot be opened), accurate --overwrite help.
Pavel-tabnine
force-pushed
the
feat/migration-helper
branch
from
August 3, 2026 10:26
f59fccc to
b6f9b13
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
migration_helper/subtree that helps users move their Tabnine CLI (or Gemini CLI) configuration into opencode.It contains two opencode skills that run as interactive wizards inside opencode itself, plus slash commands and a small bash installer:
migrate-from-tabnine-cli(/migrate) — migrates MCP servers, skills, subagents, slash commands, and the contents of Tabnine CLI extensions. Run once per target scope (global or project).migrate-tabnine-context(/migrate-context) — migrates context/memory files (TABNINE.md,GEMINI.md, or customcontext.fileNamefiles) into opencode'sAGENTS.md. Re-runnable per repository.What's inside
migration_helper/What it migrates
MCP servers (including field renames opencode requires, e.g.
env→environment, and$VAR→{env:VAR}value rewrites), skills, subagents, slash commands, extension contents, and context files. Fields with no opencode equivalent are dropped with a note in the wizard's summary. Nothing is deleted from the Tabnine CLI installation — both wizards are copy-and-translate flows, and neither overwrites an existing opencode file without asking.Out of scope: OAuth tokens (users re-authenticate remote MCP servers on first use), Tabnine credentials, admin policy fields, hooks, themes, keybindings, and general settings.
Installer behaviour
For every file it wants to place:
[s]kip / [o]verwrite / [r]ename(rename appends.bak-YYYYMMDD-HHMMSS).Manual
cpcommands are documented as a fully supported alternative (recommended path on Windows).Verification
bash -n install.shpasses; installer tested on macOS (system bash 3.2) and Debian: fresh install (6 files), idempotent re-run,--project,--overwrite, interactive skip/overwrite/rename, and non-interactive runs.~/.gemini), and context-file migration (fresh target, merge into existingAGENTS.md, repeat runs).source-map.md,mapping.md) verified against the Tabnine CLI and opencode sources.Root README
One new section,
## Migrate from Tabnine CLI, links tomigration_helper/README.md. Otherwise the root README is unchanged.Licensing
migration_helper/LICENSEscopes this subtree to MIT withCopyright (c) 2026 Tabnine Ltd.. This is a documentation + shell subtree; MIT is the shortest, most permissive, best-known license for that shape. The root repo's proprietary posture (© Tabnine. All rights reserved.) is unchanged — only this subtree is MIT.